<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html">

    <body>

        <ui:composition template="./WEB-INF/templates/maintemplate.xhtml">

            <ui:define name="content">
                <h1>Veckans Luncher</h1>
                
                <h2>Måndag</h2>
                
                #{lunchBean.loadDayLunches(0)}
                
                <ui:repeat var="o" value="#{lunchBean.lunches}" varStatus="status">
                    
                    <div class="bold">
                    <h:outputText value="#{o.lunch_name}"/> &nbsp;
                    <h:outputText value="#{o.lunch_price}"/> kr<br/>
                    </div>
                    <h:outputText value="#{o.lunch_description}"/><br/><br/>

                </ui:repeat>
                
                <h2>Tisdag</h2>
                
                #{lunchBean.loadDayLunches(1)}
                
                <ui:repeat var="o" value="#{lunchBean.lunches}" varStatus="status">
                    
                    <div class="bold">
                    <h:outputText value="#{o.lunch_name}"/> &nbsp;
                    <h:outputText value="#{o.lunch_price}"/> kr<br/>
                    </div>
                    <h:outputText value="#{o.lunch_description}"/><br/><br/>

                </ui:repeat>
                
                <h2>Onsdag</h2>
                
                #{lunchBean.loadDayLunches(2)}
                
                <ui:repeat var="o" value="#{lunchBean.lunches}" varStatus="status">
                    
                    <div class="bold">
                    <h:outputText value="#{o.lunch_name}"/> &nbsp;
                    <h:outputText value="#{o.lunch_price}"/> kr<br/>
                    </div>
                    <h:outputText value="#{o.lunch_description}"/><br/><br/>

                </ui:repeat>
                
                <h2>Torsdag</h2>
                
                #{lunchBean.loadDayLunches(3)}
                
                <ui:repeat var="o" value="#{lunchBean.lunches}" varStatus="status">
                    
                    <div class="bold">
                    <h:outputText value="#{o.lunch_name}"/> &nbsp;
                    <h:outputText value="#{o.lunch_price}"/> kr<br/>
                    </div>
                    <h:outputText value="#{o.lunch_description}"/><br/><br/>

                </ui:repeat>
                
                <h2>Fredag</h2>
                
                #{lunchBean.loadDayLunches(4)}
                
                <ui:repeat var="o" value="#{lunchBean.lunches}" varStatus="status">
                    
                    <div class="bold">
                    <h:outputText value="#{o.lunch_name}"/> &nbsp;
                    <h:outputText value="#{o.lunch_price}"/> kr<br/>
                    </div>
                    <h:outputText value="#{o.lunch_description}"/><br/><br/>

                </ui:repeat>
                
                <h2>Lördag</h2>
                
                #{lunchBean.loadDayLunches(5)}
                
                <ui:repeat var="o" value="#{lunchBean.lunches}" varStatus="status">
                    
                    <div class="bold">
                    <h:outputText value="#{o.lunch_name}"/> &nbsp;
                    <h:outputText value="#{o.lunch_price}"/> kr<br/>
                    </div>
                    <h:outputText value="#{o.lunch_description}"/><br/><br/>

                </ui:repeat>
                
                <h2>Söndag</h2>
                
                #{lunchBean.loadDayLunches(6)}
                
                <ui:repeat var="o" value="#{lunchBean.lunches}" varStatus="status">
                    
                    <div class="bold">
                    <h:outputText value="#{o.lunch_name}"/> &nbsp;
                    <h:outputText value="#{o.lunch_price}"/> kr<br/>
                    </div>
                    <h:outputText value="#{o.lunch_description}"/><br/><br/>

                </ui:repeat>
                
                
            </ui:define>

        </ui:composition>

    </body>
</html>
